{template 'common/header'}
<link rel="stylesheet" type="text/css" href="../addons/yzzc_sun_plugin_distribution/template/style/style.css">
<style type="text/css">
	.table-responsive{border: 1px solid #e7e7eb;}
	.table-responsive th{background-color: #f4f6f9;border-right: 1px solid #e7e7eb}
	.table-responsive td{border-right: 1px solid #e7e7eb}
	.table-responsive .btn-primary{border:0; padding: 3px 8px; margin-bottom: 3px;}
</style>
<ul class="we7-page-tab">
	<li class="active"><a>分销提现</a></li>
</ul>
<div class="clearfix" style="margin-left: -20px;margin-right: -20px;">
	<table class="table table-responsive">
		<tr>
			<th>id</th>
			<th>基本信息</th>
			<th>账号信息</th>
			<th>提现信息</th>
			<th>状态</th>
			<th>申请时间</th>
			<th>操作</th>
		</tr>
		{loop $list $index $val}
			<tr>
				<td>{$val['id']}</td>
				<td><img src="{$val['img']}" width="30"><br>{$val['name']}</td>
				<td>
					{if $val['uname']}<p>姓名：{$val['uname']}</p>{/if}
					<p>{$wd_type[$val['withdrawaltype']]}：{if $val['account']}{$val['account']}{else}{$val['name']}{/if}</p>
					{if $val['mobilephone']}<p>手机号：{$val['mobilephone']}</p>{/if}
				</td>
				<td>
					<p>用户申请提现金额：{$val['money']}</p>
					<p>手续费：{$val['ratesmoney']}</p>
					<p>实际打款金额：{$val['realmoney']}</p>
				</td>
				<td style="color:{$status_color[$val['status']]}">{$status[$val['status']]}（{$wd_type_str[$val['withdrawaltype']]}）</td>
				<td>{php echo date("Y-m-d H:i:s",$val['time']);}</td>
				<td>
					{if $val['status']==0}
						<a href="{php echo $this->createWeburl('ChangeWithdraw', array('status'=>2,'id'=>$val[id]));}" class="btn btn-primary" style="background-color: #d9534f;">驳回</a><br>
						<a href="{php echo $this->createWeburl('ChangeWithdraw', array('status'=>1,'id'=>$val[id]));}" class="btn btn-primary" style="background-color: #0275d8;">确认打款</a>
					{/if}
				</td>
			</tr>
		{/loop}
	</table>

	<div id="fenye">

	{$pager}

	</div>
</div>
{template 'common/footer'}